package com.mrtaohuan.data.entity;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import com.googlecode.objectify.annotation.Entity;
import com.googlecode.objectify.annotation.Id;

@Entity(name = "Category")
@NoArgsConstructor
public class Category {

	@Id
	@Getter
	@Setter
	String name; // 分类名
	@Getter
	@Setter
	String path; // 分类路径，以CATEGORY_PATH_DELIMETER结束，如含父分类，也以它分隔
	@Getter
	@Setter
	int count;

	public Category(String name, String path) {
		super();
		this.name = name;
		this.path = path;
	}

}
